package cn.alpha.open.autocode.model;

public class MapperXmlModel implements TemplateModel{

	private EntityModel entityModel;
	
	private MapperInterfaceModel mapperInterfaceModel;

	public String getTableName() 
	{
		return entityModel.getTableName();
	}
	
	@Override
	public String getFileName() {
		return mapperInterfaceModel.getClassName()+".xml";
	}
	
	@Override
	public String getPackageName() {
		return mapperInterfaceModel.getPackageName();
	}
	
	public EntityModel getEntityModel() {
		return entityModel;
	}

	public void setEntityModel(EntityModel entityModel) {
		this.entityModel = entityModel;
	}

	public MapperInterfaceModel getMapperInterfaceModel() {
		return mapperInterfaceModel;
	}

	public void setMapperInterfaceModel(MapperInterfaceModel mapperInterfaceModel) {
		this.mapperInterfaceModel = mapperInterfaceModel;
	}


}
